<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
                require_once('/Users/CTR/desktop/phpweb1/conn.php');
                $id=$_POST['id'];
                $classnum=$_POST['classnum'];
                $grade=$_POST['grade'];
                
                $query="UPDATE MYTABLE set classnum='$classnum' where id=$id";
                $result=mysqli_query($conn,$query);
                
               
                
                if($results=1){
                    
                    echo '数据已修改';
    
                }else{
                    
                    echo '提交失败<br />';
                    echo mysqli_error();
                    mysqli_close($conn);
                }
        include('links.txt');
        ?>
    </body>
</html>
